package com.easyidea.its.domain.repository.base;

import java.util.Collection;

import com.infowarelab.persistence.PersistenceIF;
import com.infowarelab.persistence.filter.base.Filter;

public interface ExtendPersistenceIF extends PersistenceIF {
	/**
	 * Set isDelete = true of the specific entity.
	 * 
	 * @param entity
	 *            entity
	 */
	void delete(Object entity);

	/**
	 * Set isDelete = true of these entities which match the filter.
	 * 
	 * @param filter
	 *            filter
	 */
	void delete(Filter filter);

	/**
	 * remove from cem1.0 for execute pure sql and return object is consist of
	 * column.
	 * 
	 * @param sql
	 *            sql
	 * @return object collection
	 */
	Collection executePureSqlByConnection(String sql);
}
